import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import multiPages from 'vite-plugin-multi-pages'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    multiPages({
      pages:[
        {
          entry: 'src/main.js',
          template: 'index.html',
          filename: 'index.html',
        },
        {
          entry: 'src/WordEdit.vue',
          template: 'wordedit.html',
          filename: 'wordedit.html',
        }
      ],
    }),
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
})
